package com.css.apps.base.org.model;

import java.io.Serializable;

@SuppressWarnings("serial")
public class SUserOrg implements Serializable {

	private String uuid;
	private String deptId; // 部门(处室)ID
	private String orgId; // 单位ID
	private String userId;

	public String getDeptId() {
		return deptId;
	}

	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}

	public String getOrgId() {
		return this.orgId;
	}

	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}

	public String getUserId() {
		return this.userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof SUserOrg))
			return false;
		SUserOrg castOther = (SUserOrg) other;
		boolean res = false;
		if (this.getDeptId().equals(castOther.getDeptId()) && this.getOrgId().equals(castOther.getOrgId()) 
				&& this.getUserId().equals(castOther.getUserId())) {
			res = true;
		}
		return res;
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getOrgId() == null ? 0 : this.getOrgId().hashCode());
		result += 37 * result + (getUserId() == null ? 0 : this.getUserId().hashCode());
		result += 37 * result + (getDeptId() == null ? 0 : this.getDeptId().hashCode());
		return result;
	}

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

}